const isDev = process.env.NODE_ENV === 'development'

const proxy = 'https://crm.weddingee.com' // 代理地址

module.exports = {
  baseUrl: isDev ? '/' : `/web/demo/`, // public path
  devServer: {
    proxy,
    disableHostCheck: true
  },
  css: {
    loaderOptions: {
      // 给 sass-loader 传递选项
      sass: {
        data: `@import "@/styles/variables.scss";`
      }
    }
  },
  productionSourceMap: false
}
